﻿package Message.Login
{
    import Framework.Serialize.*;

    public class SLogin extends Object
    {
        public var username:String;
        public var userId:int;
        public var server:String;
        public var time:Date;
        public var flag:String;
        public var country:int;
        public var isAdult:int;
        public var setIsMain:int;
        public var platformCode:String;
        public var password:String;
        public var loginIp:String;
        public var totalOnlineTime:int;
        public var platformUserName:String;
        public var issm:int;
        public var playerId:int;
        public var gateIp:String;
        public var codeVersion:String;

        public function SLogin()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.username);
            param1.writeInt(this.userId);
            param1.writeString(this.server);
            param1.writeDate(this.time);
            param1.writeString(this.flag);
            param1.writeInt(this.country);
            param1.writeInt(this.isAdult);
            param1.writeInt(this.setIsMain);
            param1.writeString(this.platformCode);
            param1.writeString(this.password);
            param1.writeString(this.loginIp);
            param1.writeInt(this.totalOnlineTime);
            param1.writeString(this.platformUserName);
            param1.writeInt(this.issm);
            param1.writeInt(this.playerId);
            param1.writeString(this.gateIp);
            param1.writeString(this.codeVersion);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.username = param1.readString();
            this.userId = param1.readInt();
            this.server = param1.readString();
            this.time = param1.readDate();
            this.flag = param1.readString();
            this.country = param1.readInt();
            this.isAdult = param1.readInt();
            this.setIsMain = param1.readInt();
            this.platformCode = param1.readString();
            this.password = param1.readString();
            this.loginIp = param1.readString();
            this.totalOnlineTime = param1.readInt();
            this.platformUserName = param1.readString();
            this.issm = param1.readInt();
            this.playerId = param1.readInt();
            this.gateIp = param1.readString();
            this.codeVersion = param1.readString();
            return;
        }// end function

    }
}
